package com.spring.boot.config;

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * 静态文件夹
 * 默认： public static resources Meta-INF/resources
 * @author mutouos.com
 *
 */
public class MyWebMvcConfigurerAdapter extends WebMvcConfigurerAdapter{

	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		//添加一个静态文件夹
		registry.addResourceHandler("/test");
		super.addResourceHandlers(registry);
	}
}
